@import './modules/reset.scss';
@import './modules/header.scss';
@import './modules/footer.scss';

@mixin bottom {
  margin-bottom: 10px;
}
@mixin width {
  .classis {
    width: 109px;
  }
  .name {
    width: 176px;
  }
  .newest {
    width: 290px;
  }
  .author {
    width: 150px;
  }
  .time {
    width: 140px;
  }
}

main {
  min-height: 1200px;
  padding-top: 10px;
  section:nth-child(1) {
    @include center();
    height: 360px;
    @include bottom();
    .copyright-left {
      float: left;
      width: 240px;
      height: 360px;
      background-color: #fff;
      .title {
        width: 100%;
        height: 50px;
        &-middle {
          height: 49px;
          margin-left: 20px;
          border-bottom: 1px solid #f2f2f2;
          h2 {
            line-height: 49px;
            font-size: 18px;
            color: #333;
            font-weight: 400;
          }
        }
      }
      .img {
        // height: 135px;
        // width: 100%;
        padding: 10px 20px 25px 20px;
        &-content {
          height: 100px;
          position: relative;
          div {
            width: 80px;
            height: 110px;
            position: absolute;
            a {
              display: block;
              width: 100%;
              height: 100%;
              img {
                width: 100%;
                height: 100%;
              }
            }
          }
          .d2 {
           transform: translateX(60px) scale(1);
           z-index: 2;
          }
          .d1 {
            transform: translateX(-10.2px) scale(0.83);
            z-index: 1;
            opacity: .8;
          }
          .d3 {
            transform: translateX(130.2px) scale(0.83);
            z-index: 1;
            opacity: .8;
          }
        }
      }
      .presentation {
        ul {
          display: none;
          li {
            margin: 0 20px;
            height: 175px;
            overflow: hidden;
            span {
              text-align: center;
              display: block;
              a {
                display: inline-block;
                font-size: 16px;
                color: #333;
              }
            }
            p {
              margin-top: 25px;
              height: 53px;
              line-height: 18px;
              overflow: hidden;
              a {
                height: 100%;
                display: inline-block;
                font-size: 12px;
                color: #b1b1b1
              }
            }
            >a {
              display: block;
              width: 100px;
              height: 28px;
              line-height: 28px;
              background-color: #ff4c2f;
              font-size: 16px;
              color: #fff;
              margin: 10px auto;
              border-radius: 5px;
              text-align: center
            }
          }
        }
        ul.dis {
          display: block;
        }
      }
    }
    .copyright-right {
      float: right;
      width: 950px;
      height: 360px;
      .carousel {
        width: 100%;
        height: 100%;
        img {
          width: 950px;
          height: 360px;
        }
      }
    }
  }
  section:nth-child(2) {
    @include center();
    height: 100px;
    @include bottom();
    .img-wrap {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-between;
      a {
        img {
          width: 340px;
          height: 100px;
          border-radius: 5px;
        }
      }
    }
  }
  section:nth-child(3) {
    @include center();
    height: 520px;
    display: flex;
    justify-content: space-between;
    @include bottom();
    .sell {
      width: 290px;
      height: 520px;
      background-color: #fff;
      &-top {
        width: 290px;
        height: 50px;
        &-wrap {
          height: 49px;
          margin-left: 20px;
          border-bottom: 1px solid #f2f2f2;
          position: relative;
          .title {
            width: 53px;
            height: 18px;
            @include sprite2;
            background-position: -159px -247px;
            position: absolute;
            top: 50%;
            margin-top: -9px;
          }
        }
      }
      .listbook {
        ul {
          margin-left: 20px;
          position: relative;
          li {
            margin-top: 15px;
            clear: both;
            overflow: hidden;
            position: relative;
            >span {
              width: 20px;
              height: 20px;
              background-color: #999;
              border-radius: 50%;
              color: #fff;
              text-align: center;
              float: left;
              font-size: 12px;
              line-height: 18px;
              position: absolute;
              top: 50%;
              margin-top: -10px;
            }
            >span.red {
              background-color: #ff4c2f;
            }
            .book-block {
              margin-left: 40px;
              overflow: hidden;
              dt {
                float: left;
                img {
                  width: 60px;
                  height: 84px;
                  border-radius: 5px;
                }
              }
              dd {
                float: left;
                margin-left: 13px;
                margin-top: 25px;
                font-size: 12px;
                width: 50%;
                a {
                  display: block;
                  color: #000;
                  height: 18px;
                  line-height: 18px;
                  overflow: hidden;
                  font-size: 14px;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                }
                span {
                  color: #999;
                  height: 18px;
                  line-height: 18px;
                  display: block;
                  margin-top: 10px;
                  position: relative;
                  a {
                    position: absolute;
                    display: inline-block;
                    font-size: 12px;
                    color: #999;
                  }
                }
              }
            }
            >a {
              margin-left: 40px;
              font-size: 12px;
              color: #4c4c4c;
              height: 20px;
              line-height: 20px;
              overflow: hidden;
              display: inline-block;
              width: auto;
            }
          }
          >a {
            float: right;
            position: absolute;
            right: 18px;
            bottom: -20px;
            color: #999;
            font-size: 12px;
          }
        }
      }
    }
    .sell_2 {
      .title {
        background-position: 0px -247px;
      }
    }
    .sell_3 {
      .title {
        background-position: -106px -247px;
      }
    }
    .sell_4 {
      .title {
        background-position: -53px -247px;
      }
    }
  }
  section:nth-child(4) {
    @include center();
    @include bottom();
    overflow: hidden;
    .listUpdate {
      float: left;
      width: 950px;
      height: 988px;
      background-color: #fff;
      .top {
        height: 48px;
        line-height: 48px;
        margin-left: 20px;
        margin-right: 30px;
        border-bottom: 1px solid #f0f3f5;
        position: relative;
        h2 {
          float: left;
          font-size: 18px;
          color: #333;
        }
        a {
          float: right;
          font-size: 14px;
          color: #999;
          position: absolute;
          right: 8px;
        }
      }
      .listContent {
        height: 938px;
        box-sizing: border-box;
        padding: 10px 40px 0 30px;
        .title {
          @include width();
          overflow: hidden;
          span {
            float: left;
            line-height: 30px;
            color: #666;
            font-size: 14px;
            font-weight: bold;
          }
        }
        .item {
          @include width();
          overflow: hidden;
          border-bottom: 1px dashed #e6e6e6;
          a {
            float: left;
            line-height: 44px;
            color: #999;
            font-size: 14px;
          }
          a:nth-child(2) {
            color: #333;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
          }
        }
      }
    }
    .contact {
      float: right;
      width: 240px;
      height: 565px;
      background-color: #fff;
      .listTitle {
        overflow: hidden;
        .mod-title {
          margin-left: 20px;
          height: 48px;
          line-height: 48px;
          background: #fff;
          border-bottom: 1px solid #f2f2f2;
          .title-bd {
            h2 {
              height: 48px;
              line-height: 48px;
              display: inline-block;
              font-size: 18px;
              color: #333;
            }
          }
        }
      }
      .bd {
        margin: 15px 0 0 20px;
        font-size: 12px;
        >p {
          line-height: 30px;
          .con-left {
            color: #999;
          }
          span {
            display: inline-block;
            vertical-align: top;
          }
        }
        p:nth-child(1) {
          a.qqcontact-text {
            vertical-align: top;
            text-decoration: underline;
            color: #ff4c2f;
          }
          a.qqcontact {
            display: inline-block;
            width: 20px;
            height: 20px;
            margin-left: 5px;
            border-radius: 50%;
            margin-top: -2px;
            background: url('/images/qq.png') 4px 4px no-repeat;
            background-size: 11px 11px;
            background-color: #50616d;
          }
        }
        .lc {
          a {
            text-decoration: underline;
            color: #ff4c2f
          }
        }
        .jinwen-editor {
          margin-top: 20px;
          padding-top: 20px;
          border-top: 1px dashed #b5b5b5;
          .connect-tit {
            font-size: 14px;
            color: #666;
          }
          p {
            margin-top: 10px;
            span {
              font-size: 12px;
              color: #999;
              margin-bottom: 5px;
            }
            i {
              display: block;
              line-height: 24px;
              margin-top: 1px;
              cursor: text;
            }
          }
        }
      }
    }
  }
}



